How can I type cast EventArgs to have a .point property in c#? [closed]

Posted by Sean Smyth on Stack Overflow See other posts from Stack Overflow or by Sean Smyth
Published on 2012-12-04T22:28:19Z Indexed on 2012/12/05 23:04 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I'm working with a double click function in c#. the function takes an object and EventArgs as it's parameters:

  private void gvHL7_DoubleClick(object sender, EventArgs e){
     .
     .
     .
  }

However, I want to use the .Point property, and EventArgs doesn't have that property. I know that DevExpress.XtraGrid.Views.Grid.GridMenuEventArgs does, but it's saying that's an invalid casting. What type should I cast my EventArgs instance to if I wish to access the .Point property?

Edit: The double click function I'm working with is provided by devexpress for their grids.

© Stack Overflow or respective owner

Related posts about c#

Related posts about parameters